<%@ page contentType="text/html;charset=utf-8" errorPage="error.jsp"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<HTML xmlns="http://www.w3.org/1999/xhtml">
<HEAD>
<TITLE>重设密码 - </TITLE>
<LINK href="styles/green/ejforum.css" type=text/css rel=stylesheet>
</HEAD>
<BODY onkeydown="if(event.keyCode==27) return false;">
<SCRIPT src="js/common.js" type=text/javascript></SCRIPT>
<SCRIPT src="js/member.js" type=text/javascript></SCRIPT>
<SCRIPT src="js/md5.js" type=text/javascript></SCRIPT>
<DIV class=wrap>
<DIV id=header>
<table>
    <tr>
            <td >
                 <div style="height:73px; width: 193px; background-image: url('images/forumlogo.jpg')"></div>
            </td>
            <td>
                 <div style="height:73px; width: 827px; background-image: url('images/headlogo.jpg')"></div>
            </td>   
    </tr>
</table>
<FORM name="findpwd" onsubmit="return checkfields();" action="perform.jsp?act=rsp" method="post">
<INPUT type=hidden name="sid" value="">
<DIV class="mainbox formbox">
<H1>重置密码</H1>
<TABLE cellSpacing=0 cellPadding=0>
  <THEAD>
  <TR>
    <TH>请输入新的密码</TH>
    <TD>&nbsp;</TD></TR></THEAD>
  <TBODY>
  <TR>
    <TH><LABEL for=userID>用户名</LABEL></TH>
    <TD><INPUT id=userID tabIndex=2 maxLength=15 
      size=25 name=userID readonly="true" value="严立青"> <SPAN id=checkuserID>&nbsp;</SPAN> </TD></TR>
  <TR>
    <TH><LABEL for=pwd1>新密码 *</LABEL></TH> 
    <TD><INPUT id=pwd1 tabIndex=4 type=password maxLength=15
      size=25 name=pwd1> <SPAN id=checkpwd>&nbsp;</SPAN><INPUT id=pwd type=hidden name=pwd></TD></TR>
  <TR>
    <TH><LABEL for=pwd2>确认密码 *</LABEL></TH>
    <TD><INPUT id=pwd2 onblur=checkpwd2() tabIndex=5 type=password maxLength=15
      size=25 name=pwd2> <SPAN id=checkpwd2>&nbsp;</SPAN> </TD></TR>
  <TR>
    <TH>&nbsp;</TH>
    <TD height="30"><BUTTON class=submit tabIndex=100 name=findsubmit type=submit 
      value="true">提交</BUTTON></TD></TR></TBODY></TABLE></DIV></FORM>
<SCRIPT type=text/javascript>
	var verifycode_invalid = '验证码输入错误，请重新填写';
	var passwd_dismatch = '两次输入的密码不一致，请检查后重试';
	var lastpwd = '';

	$('pwd1').focus();

	function checkfields() 
	{
		if (trim($('verifycode').value) == '')
		{
			warning($('checkverifycode'), '请输入验证码');
			return false;
		}
		if (trim($('pwd1').value) == '')
		{
			warning($('checkpwd'), '请输入密码');
			return false;
		}
		if (trim($('pwd2').value) == '')
		{
			warning($('checkpwd2'), '请再次输入密码');
			return false;
		}
		if (!checkpwd2())
		{
			return false;
		}
		$('pwd').value = hex_md5(trim($('pwd1').value)); 
		$('pwd1').value = '';
		$('pwd2').value = '';
		findpwd.findsubmit.disabled = true;
	}
</SCRIPT>
</DIV>
</BODY></HTML>
